package cn.edu.scau.cmi.zhangmingxing.simpleFactoryMethod;

import cn.edu.scau.cmi.zhangmingxing.simpleFactoryMethod.domain.*;

public class MeatFactory {
	public static Meat getMeat(String meatTypeString) {
		Meat meat = null;
		switch (meatTypeString) {
		case "beef":
			meat=new Beef();break;
		case "pork":
			meat=new Pork();break;
		case "chicken":
			meat=new Chicken();break;
		
		}
		return meat;
	}
}